'use strict';

function hybrid_operation(collection) {
  let arr1=collection.map(function(item){
    return item*3+2;
  });
  let result=0;
  for(let i=0;i<arr1.length;i++){
    result=result+arr1[i];
  }
  return result;
}

module.exports = hybrid_operation;

